# coding: utf-8


from graph import vertex_t
from typing import Dict, Tuple


class DrawingOptions:
    def __init__(self):
        self.labels: Dict[vertex_t, str] = {}
        self.colors: Dict[vertex_t, str] = {}
        self.edge_colors: Dict[Tuple[vertex_t, vertex_t], str] = {}
        self.font_size = 24  # 里面编号的大小
        self.margin = 10
        self.use_labels = True

    @staticmethod
    def from_colors(colors: Dict[vertex_t, str]):
        opts = DrawingOptions()
        opts.colors = colors
        return opts
